﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Week6Music_API_and_Angular_.Data.Model
{
    public class Event
    {
        public virtual List<UsersEvents> UserEvent { get; set; }

        public int Id { get; set; }

        public string EventName { get; set; }

        [ForeignKey("FeaturedArtist")]
        public int FeaturedArtistID { get; set; }

        public virtual Artist FeaturedArtist { get; set; }

        [ForeignKey("OpeningArtist")]
        public int OpeningArtistID { get; set; }

        public virtual Artist OpeningArtist { get; set; }

        public DateTime Date { get; set; }

        public int ZipCode { get; set; }

        public double price { get; set; }

        public string EventPoster { get; set; }
    }
}